﻿using EYWeb.Core;
using EYWeb.Services;
using EYWeb.WebLTE.App_Start.Handler;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EYWeb.WebLTE.Areas.SystemModule.Controllers
{
    
    public class UserController : Controller
    {
        public IUserService _userService;

        public UserController(IUserService userService)
        {
            _userService = userService;
        }
        [MvcAuthorize]
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Xxx()
        {
            return View();
        }
        
        public ActionResult GetUserList()
        {
            var data = new
            {
                data = _userService.FindAll()
            };
            return Content(data.ToJson());
            //return Json(data,JsonRequestBehavior.AllowGet);

        }


    }
}